package com.nine.shop.common;

/**
 * 常量类
 * 所有常量定义在此类中
 */

public class Constant{
    /**
     * 接口处理状态code和description 枚举
     */
    public enum ResponseCode {
        ERROR(-300,"Error"),
        SUCCESS(300,"Success");
        public final int code;
        public final String dsc;
        ResponseCode(int code, String dsc) {
            this.code = code;
            this.dsc = dsc;
        }
        public int getCode() {
            return code;
        }
    }
}
